gnome.compile_resources(
app_id + '.data',
- app_id + '.data.gresource.xml',
+ base_id + '.data.gresource.xml',
gresource_bundle: true,
install: true,
install_dir: pkgdatadir
i18n.merge_file('desktop',
input: configure_file(
- input: desktop_file + '.in.in',
+ input: base_id + '.desktop.in.in',
output: desktop_file + '.in',
configuration: desktopconf
),
endif
configure_file(
- input: app_id + '.service.in',
+ input: base_id + '.service.in',
output: app_id + '.service',
configuration: desktopconf,
install_dir: servicedir,
metainfo = app_id + '.metainfo.xml'
i18n.merge_file(metainfo,
- input: metainfo + '.in',
+ input: base_id + '.metainfo.xml.in',
output: metainfo,
po_dir: po_dir,
install: true,
)
configure_file(
- input: app_id + '.in',
+ input: base_id + '.in',
output: app_id,
configuration: launcherconf,
install_dir: pkgdatadir,
gnome.compile_resources(
app_id + '.src',
- app_id + '.src.gresource.xml',
+ configure_file(
+ input: base_id + '.src.gresource.xml.in',
+ output: app_id + '.src.gresource.xml',
+ configuration: {'profile': '/'.join(profile.split('.')) },
+ ),
source_dir: ['.', '../../../js'],
gresource_bundle: true,
install: true,
+++ /dev/null
-<?xml version="1.0" encoding="UTF-8"?>
-<gresources>
- <gresource prefix="/org/gnome/Extensions/js">
- <file>main.js</file>
-
- <file>misc/config.js</file>
- <file>misc/extensionUtils.js</file>
- </gresource>
-</gresources>
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<gresources>
+ <gresource prefix="/org/gnome/Extensions@profile@/js">
+ <file>main.js</file>
+
+ <file>misc/config.js</file>
+ <file>misc/extensionUtils.js</file>
+ </gresource>
+</gresources>
license: 'GPLv2+'
)
-app_id = 'org.gnome.Extensions'
+if get_option('profile') == 'development'
+ profile = '.Devel'
+else
+ profile = ''
+endif
+
+base_id = 'org.gnome.Extensions'
+app_id = base_id + profile
prgname = 'gnome-extensions-app'
gnome = import('gnome')
type: 'string',
description: 'The gettext domain name',
)
+option('profile',
+ type: 'combo',
+ choices: [
+ 'default',
+ 'development'
+ ],
+ value: 'default'
+)